package com.panda.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.panda.common.annotation.Excel;
import com.panda.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 操作节点明细对象 panda_task_monitoring
 * 
 * @author ruoyi
 * @date 2021-01-02
 */
public class PandaTaskMonitoring extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 节点ID */
    private Long id;

    /** 任务ID */
    @Excel(name = "任务ID")
    private Long taskId;

    /** 任务明细ID */
    @Excel(name = "任务明细ID")
    private Long taskDetailId;

    /** 操作类型 */
    @Excel(name = "操作类型")
    private String operationType;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date operationTime;

    /** 操作用户ID */
    @Excel(name = "操作用户ID")
    private Long operationUserId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTaskId(Long taskId) 
    {
        this.taskId = taskId;
    }

    public Long getTaskId() 
    {
        return taskId;
    }
    public void setTaskDetailId(Long taskDetailId) 
    {
        this.taskDetailId = taskDetailId;
    }

    public Long getTaskDetailId() 
    {
        return taskDetailId;
    }
    public void setOperationType(String operationType) 
    {
        this.operationType = operationType;
    }

    public String getOperationType() 
    {
        return operationType;
    }
    public void setOperationTime(Date operationTime) 
    {
        this.operationTime = operationTime;
    }

    public Date getOperationTime() 
    {
        return operationTime;
    }
    public void setOperationUserId(Long operationUserId) 
    {
        this.operationUserId = operationUserId;
    }

    public Long getOperationUserId() 
    {
        return operationUserId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("taskId", getTaskId())
            .append("taskDetailId", getTaskDetailId())
            .append("operationType", getOperationType())
            .append("operationTime", getOperationTime())
            .append("operationUserId", getOperationUserId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
